/**
 * @Author wywinstonwy
 * @Date 2021/12/28 11:25 上午
 * @Description:
 */

import'package:flutter/services.dart';

class AsrManager{
    static const MethodChannel _channel = const MethodChannel('asr_plugin');
    //开始录音
    static Future<String>start({required Map params}) async{
      return await _channel.invokeMethod('start',params);
    }
    //停止录音
    static Future<String>stop() async{
      return await _channel.invokeMethod('stop');
    }

    //取消录音
    static Future<String>cancel() async{
      return await _channel.invokeMethod('cancel');
    }

}